/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Shares classification policies
 */
@Schema(description = "Shares classification policies")

public class ShareClassificationPolicies {
  /**
   * &amp;#128640; Since v4.30.0  Minimum classification that causes download shares to require a password. &#x60;0&#x60; means no password will be enforced.
   */
  public enum ClassificationRequiresSharePasswordEnum {
    NUMBER_0(0),
    NUMBER_1(1),
    NUMBER_2(2),
    NUMBER_3(3),
    NUMBER_4(4);

    private Integer value;

    ClassificationRequiresSharePasswordEnum(Integer value) {
      this.value = value;
    }
    @JsonValue
    public Integer getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static ClassificationRequiresSharePasswordEnum fromValue(Integer input) {
      for (ClassificationRequiresSharePasswordEnum b : ClassificationRequiresSharePasswordEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("classificationRequiresSharePassword")
  private ClassificationRequiresSharePasswordEnum classificationRequiresSharePassword = null;

  public ShareClassificationPolicies classificationRequiresSharePassword(ClassificationRequiresSharePasswordEnum classificationRequiresSharePassword) {
    this.classificationRequiresSharePassword = classificationRequiresSharePassword;
    return this;
  }

   /**
   * &amp;#128640; Since v4.30.0  Minimum classification that causes download shares to require a password. &#x60;0&#x60; means no password will be enforced.
   * @return classificationRequiresSharePassword
  **/
  @Schema(description = "&#128640; Since v4.30.0  Minimum classification that causes download shares to require a password. `0` means no password will be enforced.")
  public ClassificationRequiresSharePasswordEnum getClassificationRequiresSharePassword() {
    return classificationRequiresSharePassword;
  }

  public void setClassificationRequiresSharePassword(ClassificationRequiresSharePasswordEnum classificationRequiresSharePassword) {
    this.classificationRequiresSharePassword = classificationRequiresSharePassword;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ShareClassificationPolicies shareClassificationPolicies = (ShareClassificationPolicies) o;
    return Objects.equals(this.classificationRequiresSharePassword, shareClassificationPolicies.classificationRequiresSharePassword);
  }

  @Override
  public int hashCode() {
    return Objects.hash(classificationRequiresSharePassword);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ShareClassificationPolicies {\n");
    
    sb.append("    classificationRequiresSharePassword: ").append(toIndentedString(classificationRequiresSharePassword)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
